package com.tjetc.view;

import java.util.Scanner;

/**
 * 用户界面
 */
public class CustomerView {
    private static Scanner sc=new Scanner(System.in);
    public void start() {
        while(true){
            System.out.println("🥰🥰~~~~~~客户登录页面~~~~~~🥰🥰");
            System.out.println("1.实名认证界面");
            System.out.println("2.车辆查询与租赁界面");
            System.out.println("3.订单管理界面");
            System.out.println("0返回上一级");
            System.out.println("请输入你的选择0~4");
            int i=sc.nextInt();
            switch (i){
                case 1:
                    MessageManageView messageManageView = new MessageManageView();
                    messageManageView.start();
                    break;
                case 2:
                    VehicleCustomerView vehicleCustomerView = new VehicleCustomerView();
                    vehicleCustomerView.start();
                    break;
                case 3:
                    OrderCustomerView orderCustomerView=new OrderCustomerView();
                    orderCustomerView.start();
                    break;
                case 0:
                    return;
                default:
                    System.out.println("输入错误请重新输入");
            }
        }
    }
}
